import actionType from "./actionType";
const initState={
    list:[]
}

const reducer =(state=initState,action:any)=>{
        const {type,payload}=action
        switch (type) {
            case actionType.SET_LIST:
                console.log(payload)
                return{
                    ...state,
                    list:payload
                }
            default:
                return{
                    ...state
                }
        }
}
export default reducer